import request from '@/utils/request'

// 查询日精进打卡列表
export function listDailyImprovement(query) {
  return request({
    url: '/mis/dailyImprovement/list',
    method: 'get',
    params: query
  })
}

// 查询未填写人
export function queryByTime(data) {
  return request({
    url: '/mis/dailyImprovement/queryByTime',
    method: 'post',
    data: data
  })
}

// 按月份查询填写情况
export function queryByMonth(query) {
  return request({
    url: '/mis/dailyImprovement/queryByMonth',
    method: 'get',
    params: query
  })
}
// 置顶按钮操作
export function getDailyPinned(ids) {
  return request({
    url: '/mis/dailyImprovement/getDailyPinned/'+ids,
    method: 'get',
  })
}

// 查询日精进打卡详细
export function getDailyImprovement(id) {
  return request({
    url: '/mis/dailyImprovement/' + id,
    method: 'get'
  })
}

// 新增日精进打卡
export function addDailyImprovement(data) {
  return request({
    url: '/mis/dailyImprovement',
    method: 'post',
    data: data
  })
}

// 修改日精进打卡
export function updateDailyImprovement(data) {
  return request({
    url: '/mis/dailyImprovement',
    method: 'put',
    data: data
  })
}

// 删除日精进打卡
export function delDailyImprovement(id) {
  return request({
    url: '/mis/dailyImprovement/' + id,
    method: 'delete'
  })
}
